<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="common_css :: commonHeader('表校验规则管理')"></head>
<body>
<!--搜索框-->
<form method="post" id="tabfrom">
    <div style="padding:2px" class="easyui-panel" title="数据查询">
        <table class="form-table">
            <tr>
                <td align="right" width="10%">检验类型：</td>
                <td align="left">
                    <input style="width:150px" id="selCheckCode"
                           data-options="valueField:'value',textField:'showmsg'
                                    ,panelHeight:'auto',prompt:'==请选择=='" class="easyui-combobox"/>
                </td>
                <td align="right" width="10%">表名前缀：</td>
                <td align="left">
                    <input id="selTableNamePrefix" style="width:150px"/>
                </td>
                <td align="right" width="10%">表名后缀：</td>
                <td align="left">
                    <input id="selTableNameSuffix" style="width:150px"/>
                </td>
                <td align="right" width="10%">表名包含：</td>
                <td align="left">
                    <input id="selTableNameContain" style="width:150px"/>
                </td>
            </tr>
            <tr>
                <td align="right" width="10%">状态：</td>
                <td align="left">
                    <input style="width:150px" id="selStatus"
                           data-options="valueField:'value',textField:'showmsg' ,panelHeight:'auto',prompt:'==请选择=='"
                           class="easyui-combobox"/>
                    <a class="easyui-linkbutton" iconCls='icon-search' onclick="doSearch();">查询</a>
                </td>
            </tr>
        </table>
    </div>
    <br>
</form>
<div id="toolbar">
    <shiro:hasPermission name="reportworld:table:standard:check:add">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-add"
           onclick="addTableStandardCheck()">添加</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="reportworld:table:standard:check:edit">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-edit"
           onclick="editTableStandardCheck()">修改</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="reportworld:table:standard:check:del">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel"
           onclick="delTableStandardCheck()">删除</a>
    </shiro:hasPermission>
</div>

<div id="dg"></div>


<div id="dlg" class="easyui-dialog" style="width:650px;height:410px"
     closed="true" modal="true" maximizable="true" resizable="true">
    <form id="myform" method="post">
        <div style="padding:20px">
            <table cellpadding="2px" cellspacing="0" class="form-table">
                <input type="hidden" id="id" name="id">
                <tr>
                    <td align="right">检验类型：</td>
                    <td>
                        <input name="checkCode" id="checkCode" class="easyui-combobox" editable="false"
                               data-options="required:true,valueField:'value',textField:'showmsg',prompt:'==请选择==',panelHeight:'auto'"
                               missingMessage="请维护检验类型" validType="comboxValidate['checkCode','请维护检验类型']"/>
                    </td>
                </tr>
                <tr>
                    <td align="right">表名前缀：</td>
                    <td>
                        <input class="easyui-validatebox" data-options="required:false"
                               missingMessage="请输入英文表名前缀" name="tableNamePrefix" id="tableNamePrefix"/>
                    </td>
                </tr>
                <tr>
                    <td align="right">表名后缀：</td>
                    <td>
                        <input class="easyui-validatebox" data-options="required:false"
                               missingMessage="请输入英文表名后缀" name="tableNameSuffix" id="tableNameSuffix"/>
                    </td>
                </tr>
                <tr>
                    <td align="right">表名包含：</td>
                    <td>
                        <input class="easyui-validatebox" data-options="required:false"
                               missingMessage="请输入英文表名包含" name="tableNameContain" id="tableNameContain"/>
                    </td>
                </tr>

                <tr id="layeredTr">
                    <td align="right">所在分层：</td>
                    <td>
                        <input name="layered" id="layered" class="easyui-combobox" editable="false"
                               data-options="required:false,valueField:'value',textField:'showmsg',prompt:'==请选择==',panelHeight:'auto'"
                               missingMessage="请维护所在分层" validType="comboxValidate['layered','请维护所在分层']"/>
                    </td>
                </tr>
                <tr id="modularTr">
                    <td align="right">所属模块：</td>
                    <td>
                        <input id="modular" name="modular" style="width: 350px" cascadeCheck="true"
                               data-options="required:false,prompt:'==请选择==',panelHeight:'auto'"
                               class="easyui-combotree"
                               validType="comtreeValidate['modular','请选择所属模块']"/>
                    </td>
                </tr>
                <tr id="customerTr">
                    <td align="right">所属客户：</td>
                    <td>
                        <input id="customer" name="customer" style="width: 350px"
                               cascadeCheck="true"
                               data-options="required:false,prompt:'==请选择=='"
                               class="easyui-combotree"
                               validType="comtreeValidate['customer','请选择所属客户']"/>
                    </td>
                </tr>
                <tr id="reportTr">
                    <td align="right">所属报表：</td>
                    <td>
                        <input id="report" name="report" style="width: 350px" cascadeCheck="true"
                               data-options="required:false,prompt:'==请选择==',panelHeight:'auto'"
                               class="easyui-combotree"
                               validType="comtreeValidate['report','请选择所属报表']"/>
                    </td>
                </tr>
                <tr>
                    <td align="right">状态：</td>
                    <td>
                        <input name="status" id="status" class="easyui-combobox" editable="false"
                               data-options="required:false,valueField:'value',textField:'showmsg',prompt:'==请选择==',panelHeight:'auto'"
                               missingMessage="请维护状态" validType="comboxValidate['status','请维护状态']"/>
                    </td>
                </tr>
            </table>
        </div>

    </form>
</div>


<div th:include="common_js :: commJS"></div>
<script type="text/javascript"
        th:src="@{/js/reportworld/tableStandardCheck.js}"></script>
</body>
</html>
